package com.xbao.controller;

import com.xbao.wchat.service.WxService;
import com.xbao.core.http.CommRequest;
import com.xbao.model.req.WxReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by qingshengzheng on 2018/12/5.
 */
@Api(value = "/wx", tags = "wx")
@RequestMapping(value = "wx")
@Controller
@EnableAutoConfiguration
public class WxController  extends BaseController{

    private WxService wxService;
    @ApiOperation(value = "wx", notes = "wx")
    @RequestMapping(value = "/wx",method = RequestMethod.POST)
    @ResponseBody
    public Object wxinfo(@RequestBody CommRequest<WxReq> wxReqCommRequest) {
       // wxService.requestWxInfo(wxReqCommRequest.getData().getCode());
        return result();
    }
}
